﻿namespace DomainServices.Tools.Pdb.SymStore
{
    using System;
    using System.Text;

    internal class SymSymbolSearchInfo : ISymbolSearchInfo
    {
        private ISymUnmanagedSymbolSearchInfo m_target;

        public SymSymbolSearchInfo(ISymUnmanagedSymbolSearchInfo target)
        {
            this.m_target = target;
        }

        public int HResult
        {
            get
            {
                int num;
                this.m_target.GetHRESULT(out num);
                return num;
            }
        }

        public string SearchPath
        {
            get
            {
                int num;
                this.m_target.GetSearchPath(0, out num, null);
                StringBuilder szPath = new StringBuilder(num);
                this.m_target.GetSearchPath(num, out num, szPath);
                return szPath.ToString();
            }
        }

        public int SearchPathLength
        {
            get
            {
                int num;
                this.m_target.GetSearchPathLength(out num);
                return num;
            }
        }
    }
}

